<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script src="./promise-ajax.js"></script>
<script>
    ajax('get','./userinfo.json',{}).then((res)=>{
        console.log("获取用户信息:",res);
        return ajax("get","./scores.json",{id:res.id})
    }).then((res)=>{
            console.log("获取用户考试成绩:",res);
            return ajax("get","./scores.json",{id:res.id})
        }).then((res)=>{
            console.log("获取用户三个月的考试成绩:",res);
        })
</script>